-- GENERATED SPELL FOR [Kolkar Stormer] --


function spell0_3273(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3273', 3000, 1)
end

function spell1_3273(pUnit, Event) --@Lightning Cloud,n/a--
pUnit:FullCastSpellOnTarget(6535,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3273', 18000, 1)
end

function Sorts_3273(pUnit, Event)
local choix_sorts_3273 = math.random(0, 1)
if choix_sorts_3273 == 0 then
pUnit:RegisterEvent('spell0_3273', 1, 1)
end
if choix_sorts_3273 == 1 then
pUnit:RegisterEvent('spell1_3273', 1, 1)
end
end

function mob3273_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3273', math.random(1500, 3000), 1)
end

function mob3273_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3273_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3273_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3273, 1, 'mob3273_Action')
RegisterUnitEvent(3273, 2, 'mob3273_Leave')
RegisterUnitEvent(3273, 3, 'mob3273_Kill')
RegisterUnitEvent(3273, 4, 'mob3273_Die')
